package org.bobo.utils.job;



import lombok.extern.slf4j.Slf4j;
import org.quartz.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;


@Slf4j
@DisallowConcurrentExecution
public class JobQuartz implements Job {

    @Autowired
    private QuartzBiz quartzBiz;
    @Value("${bobo.job.jobClassName}")
    private String jobClassName;



    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        JobDataMap mergedJobDataMap = jobExecutionContext.getMergedJobDataMap();
        String type = (String) mergedJobDataMap.get("type");
        String onlyParam = (String) mergedJobDataMap.get("onlyParam");
        if (type.equals(JobType.ORDER_ADD.getCode())) {


        }

    }





}
